﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200089B RID: 2203
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GmTalkCsReq : IMessage<GmTalkCsReq>, IMessage, IEquatable<GmTalkCsReq>, IDeepCloneable<GmTalkCsReq>, IBufferMessage
	{
		// Token: 0x17001BBB RID: 7099
		// (get) Token: 0x06006274 RID: 25204 RVA: 0x0010579F File Offset: 0x0010399F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GmTalkCsReq> Parser
		{
			get
			{
				return GmTalkCsReq._parser;
			}
		}

		// Token: 0x17001BBC RID: 7100
		// (get) Token: 0x06006275 RID: 25205 RVA: 0x001057A6 File Offset: 0x001039A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GmTalkCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001BBD RID: 7101
		// (get) Token: 0x06006276 RID: 25206 RVA: 0x001057B8 File Offset: 0x001039B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GmTalkCsReq.Descriptor;
			}
		}

		// Token: 0x06006277 RID: 25207 RVA: 0x001057BF File Offset: 0x001039BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GmTalkCsReq()
		{
		}

		// Token: 0x06006278 RID: 25208 RVA: 0x001057D2 File Offset: 0x001039D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GmTalkCsReq(GmTalkCsReq other) : this()
		{
			this.msg_ = other.msg_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006279 RID: 25209 RVA: 0x001057F7 File Offset: 0x001039F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GmTalkCsReq Clone()
		{
			return new GmTalkCsReq(this);
		}

		// Token: 0x17001BBE RID: 7102
		// (get) Token: 0x0600627A RID: 25210 RVA: 0x001057FF File Offset: 0x001039FF
		// (set) Token: 0x0600627B RID: 25211 RVA: 0x00105807 File Offset: 0x00103A07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Msg
		{
			get
			{
				return this.msg_;
			}
			set
			{
				this.msg_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600627C RID: 25212 RVA: 0x0010581A File Offset: 0x00103A1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GmTalkCsReq);
		}

		// Token: 0x0600627D RID: 25213 RVA: 0x00105828 File Offset: 0x00103A28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GmTalkCsReq other)
		{
			return other != null && (other == this || (!(this.Msg != other.Msg) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600627E RID: 25214 RVA: 0x0010585C File Offset: 0x00103A5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Msg.Length != 0)
			{
				num ^= this.Msg.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600627F RID: 25215 RVA: 0x0010589D File Offset: 0x00103A9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006280 RID: 25216 RVA: 0x001058A5 File Offset: 0x00103AA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006281 RID: 25217 RVA: 0x001058AE File Offset: 0x00103AAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Msg.Length != 0)
			{
				output.WriteRawTag(50);
				output.WriteString(this.Msg);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006282 RID: 25218 RVA: 0x001058E8 File Offset: 0x00103AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Msg.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Msg);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006283 RID: 25219 RVA: 0x0010592B File Offset: 0x00103B2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GmTalkCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Msg.Length != 0)
			{
				this.Msg = other.Msg;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006284 RID: 25220 RVA: 0x00105961 File Offset: 0x00103B61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006285 RID: 25221 RVA: 0x0010596C File Offset: 0x00103B6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Msg = input.ReadString();
				}
			}
		}

		// Token: 0x040025AA RID: 9642
		private static readonly MessageParser<GmTalkCsReq> _parser = new MessageParser<GmTalkCsReq>(() => new GmTalkCsReq());

		// Token: 0x040025AB RID: 9643
		private UnknownFieldSet _unknownFields;

		// Token: 0x040025AC RID: 9644
		public const int MsgFieldNumber = 6;

		// Token: 0x040025AD RID: 9645
		private string msg_ = "";
	}
}
